import bcrypt

passwd = "密码123"

salt = bcrypt.gensalt()
hashed = bcrypt.hashpw(passwd.encode("utf-8"), salt).decode("utf-8")
result = bcrypt.checkpw(passwd.encode("utf-8"), hashed.encode("utf-8"))

print("passwd: ", passwd)
print("hashed: ", hashed)
print(" check: ", result)
